#region

using System;

#endregion

namespace CommandLineMapper.Helpers {
    public class AssertUtils {
        public static void AssertArgumentNull(object value, string paramName) {
            if (value == null) {
                throw new ArgumentNullException(paramName);
            }
        }

        public static void AssertArgumentNullForString(string value, string paramName) {
            if (String.IsNullOrEmpty(value)) {
                throw new ArgumentNullException(paramName);
            }
        }

        public static void AssertArgument(bool condition, string message) {
            if (condition) {
                throw new ArgumentException(message);
            }
        }
    }
}